package cn.regexp.common.core.web.interceptor;


import cn.regexp.common.core.constants.CommonConstants;
import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * @author Regexpei
 * @date 2024/7/5 21:15
 * @description Feign 请求拦截器
 */
public class FeignRequestInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate template) {
        template.header(CommonConstants.FEIGN_REQUEST_KEY, CommonConstants.FEIGN_REQUEST_TRUE);
    }
}
